home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
educate
/
wordy442.zip
/
SRCH.H
< prev
next >
Wrap
C/C++ Source or Header
|
1995-01-19
|
545b
|
20 lines
#include <stdio.h>
#include <io.h>
#include <stdlib.h>
#include <string.h>
#include <dos.h>
#define COMPARISON_ERROR 1
#define MAXTESTS 50
#define MAX_WLEN 16
#define MAX_SPAN 25
const char Wordfile[] = "word.lst"; //File containing list of valid words.
typedef enum { FAIL, SUCCESS } Rflag;
/******************************PROTOTYPES***********************************/
Rflag l_search( char *search_word, FILE *fp );
Rflag b_search( char *search_word, FILE *fp, long left, long right );
Rflag lookup( char *test_word );